{% extends "base.html" %}

{% block title %}
  注册
{% endblock %}

{% block captcha %}
  <script src='https://www.google.com/recaptcha/api.js'></script>
{% endblock %}

{% block body %}
    <div class="col-lg-3">
        <!-- Set the form -->
        <form method="POST" action="{{ url_for('manage.register') }}">
            {{ form.hidden_tag() }}
            <div>
                {{ form.username.label }}
                {{ form.username(class_="form-control") }}
            </div>
            <div class="form-group">
                {{ form.password.label }}
                {{ form.password(class_='form-control') }}
            </div>
            <div class="form-group">
                {{ form.confirm.label }}
                {{ form.confirm(class_='form-control') }}
            </div>
            <input class="btn btn-primary" type="submit" value="Register">
            <div
                    class="g-recaptcha"
                    data-sitekey="6Le4Y4cUAAAAAOQZmDTeQ9Z55zJE919YhTVKKCRB">
            </div>
        </form>
    </div>
{% endblock %}
